tests: Use rand when random is unavailable
authorDaniel Sabo <DanielSabo@gmail.com>
Sun, 2 Feb 2014 07:13:28 +0000 (23:13 -0800)
committerDaniel Sabo <DanielSabo@gmail.com>
Mon, 3 Feb 2014 06:05:47 +0000 (22:05 -0800)
tests/babl_fish_path_fitness.c

index 8480fc028bb324e492e0822a845a8c107c4e149e..bab17d699136315c7db2eb6bbba8dc15299bf969 100644 (file)
@@ -6,6 +6,11 @@
 #include <math.h>
 #include "babl-internal.h"
 
+#ifndef HAVE_SRANDOM
+#define srandom srand
+#define random  rand
+#endif
+
 #define pixels    1024
 int           total_length = 0;
 int           total_cost   = 0;